<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../include/head.jspf"%>  

<head>
<title>东方易云后台管理系统</title>
<script>
function addGroupInfo(){
	var errorMsg = "";
	if(isNull($("#groupName").val())){
		errorMsg += '<spring:message code="message.group.system.groupname.is.blank" />';
	}
	if (checkRadioStat("status")==false){
		errorMsg += '\n'+'<spring:message code="message.group.system.group.status.not.select" />';
	}
	
	if(errorMsg != ""){
		alert(errorMsg);
		return;
	}else{
		$('#addForm').attr("action","/group/${type}/addSubmit");
		$('#addForm').submit();
	}
}

function goBack(){
	$('#addForm').attr("action","/group/${type}/list");
	$('#addForm').submit();
}
</script>

</head>

<body>
<form  method="post" id="addForm">
<table border="1">
	<tr><td >增加用户组信息</td></tr>
	<tr><td>组名称:</td><td><input id="groupName" name="groupName" type="text"></td></tr>
	<tr><td>组状态:</td><td>启用：<input id="status" name="status" type="radio" value="1" /> 停用：<input name="status" type="radio"  value="0" /></td></tr>
	<tr><td>文本域:</td><td><textarea name="memo"></textarea></td></tr>
	<tr><td><input type="button" value="确定" onclick="javascript:addGroupInfo();"/><input type="button" value="取消" onclick="javascript:goBack();"/></td></tr>
</table>

</form>

</body>

</html>
